package com.tcm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 组织机构表实体类
 * @author Guqier
 * @version 1.0
 * @date 2023/7/4 19:39
 */
@Data
@TableName("ts_organization")
public class Organization {

    //组织机构ID
    private Long id;

    //父级ID
    private Long parentId;

    //组织机构名称
    private String name;

    //所属层级
    private Integer grade;

    //组织类型
    private Integer type;

    //同层级排序
    private Integer sequence;

    //状态，0启用，1停用
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //创建用户
    private Long createUser;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //更新用户
    private Long updateUser;

    //备用
    private String memo;


}